// +FHDR------------------------------------------------------------
//                 Copyright (c) 2023 NOVAUTO.
//                       ALL RIGHTS RESERVED
// -----------------------------------------------------------------
// Filename      : async_fifo_b2g_unit.v
// Author        : ICer
// Created On    : 2023-12-28 17:42
// Last Modified : 2023-12-28 17:43 by ICer
// -----------------------------------------------------------------
// Description:
//
//
// -FHDR------------------------------------------------------------


module async_fifo_b2g_unit #(
    //parameter
    parameter WIDTH = 4
)( /*AUTOARG*/
   // Outputs
   gray,
   // Inputs
   binary
   );

// ----------------------------------------------------------------
// Interface declare
// ----------------------------------------------------------------
output [WIDTH -1:0] gray;
input  [WIDTH -1:0] binary;

// ----------------------------------------------------------------
// Wire declare
// ----------------------------------------------------------------

// ----------------------------------------------------------------
// AUTO declare
// ----------------------------------------------------------------
/*AUTOOUTPUT*/
/*AUTOINPUT*/
/*AUTOWIRE*/

assign gray = (binary >> 1) ^ binary;

endmodule
// Local Variables:
// verilog-auto-inst-param-value:t
// verilog-library-directories:(".")
// verilog-library-extensions:(".v")
// End:

